package com.athuahua.spzx.service;

import com.athuahua.spzx.entity.Brand;
import com.athuahua.spzx.entity.CategoryBrand;
import com.athuahua.spzx.entity.vo.CategoryBrandVo;
import com.athuahua.spzx.dto.product.CategoryBrandDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author huahua
* @description 针对表【category_brand(分类品牌)】的数据库操作Service
* @createDate 2024-07-31 14:14:40
*/
public interface CategoryBrandService extends IService<CategoryBrand> {

    /**
     * 分页查询
     * @param page
     * @param limit
     * @param categoryBrandDto
     * @return
     */
    IPage<CategoryBrandVo> pageInfo(Integer page, Integer limit, CategoryBrandDto categoryBrandDto);

    /**
     * 根据分类ID查询品牌
     * @param categoryId
     * @return
     */
    List<Brand> findBrandByCategoryId(Integer categoryId);
}
